package com.example.visitor.visit;

/**
 * @author ycd0075
 * @date 2024-01-25 17:19
 */
public class Leader implements Visitor{
    @Override
    public void visit(NormalPersonA element) {
        System.out.println("你好：一起吃饭呀 : " + element.getName());

    }

    @Override
    public void visit(NormalPersonB element) {
        System.out.println("你好：一起去喝酒呀 : " + element.getName());
    }
}
